﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Newtonsoft.Json;

namespace WooCoo.DataPortal.Client
{
    public sealed class ODataSampleFormat<T>
    {
        [JsonProperty("odata.metadata")]
        public string MetaData { get; set;}
        [JsonProperty("value")]
        public IList<T> Values { get; set; }      

        public ODataSampleFormat()
        {
            Values = new List<T>();
        }

        public void Add(object item)
        {
            this.Values.Add((T)item);
        }
    }
}
